<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
        <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="decorator" content="default"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>菜单编辑页面</title>
</head>
<body>
	<div id="basicform" class="subcontent">
                                
                    <div class="contenttitle2">
                        <h3>菜单编辑页面</h3>
                    </div><!--contenttitle-->

                    <form class="stdform" action="${ctx }/sys/menu/save" method="post">
                    
                    	 <p>
                        	<label>父 菜 单</label>
                            <span class="field">
                            <!-- disabled="disabled"  -->
							<select  name="parentId"  class="uniformselect">
                            	<option value="${parentMenu.id }">${parentMenu.name }</option>
                            </select>
                            </span>
                        </p>
                        
                        <p>
                        	<label>*名  称</label>
                            <span class="field">
                            <input type="hidden" name="id" value="${currentMenu.id}" />
                            <input type="text" name="name" class="smallinput" value="${currentMenu.name}" />
                            </span>
                            <small class="desc">填写菜单名称</small>
                        </p>
                         <p>
                        	<label>*本 站 URL</label>
                            <span class="field"><input type="text"  name="href" value="${currentMenu.href}" /></span>
                          	<!--   <small class="desc">Try to use mouse wheel.</small> -->
                        </p>
                        <p>
                        	<label>*权 限</label>
                            <span class="formwrapper">
                            	<select name="permission" class="chzn-select" style="width:350px;" tabindex="2">
                                  <option value=""   >no-permission(不进行权限认证) </option> 
                                  allPermissions
                                  <c:forEach items="${allPermissions }" var="permission">
                                 		<option value="${permission.permission }" 
                                 		 ${permission.permission eq  currentMenu.permission ? 'selected=selected' : ''}>
                                 		 
                                 		 ${permission.permission }(${permission.title })
                                 		 </option> 
                                  </c:forEach>
                                </select>
                            </span>
                        </p>
                        <p>
                        	<label>图  标</label>
                            <span class="field">
                            <input type="text" name="icon" class="smallinput" value="${currentMenu.icon}" />
                            </span>
                        </p>
                         <p>
                        	<label>排序</label>
                            <span class="field"><input type="text" id="spinner" name="sort" value="${empty currentMenu.sort ? 0 : currentMenu.sort}" class="width50 noradiusright" /></span>
                          	<!--   <small class="desc">Try to use mouse wheel.</small> -->
                        </p>
                        
                        <p>
                        	<label>备  注</label>
                            <span class="field"><textarea name="note" cols="80" rows="5"  class="longinput">${currentMenu.note }</textarea></span> 
                        </p>
                        
                        <p>
                        	<label>可 见 性</label>
                            <span class="formwrapper">
                            	<input type="radio" name="isShow" value="1"  ${currentMenu.isShow == 0 ? '' : 'checked=checked'} />可 视 &nbsp; &nbsp;
                            	<input type="radio" name="isShow" value="0"  ${currentMenu.isShow == 0 ? 'checked=checked' : ''} /> 不 可 见 &nbsp; &nbsp;
                            </span>
                        </p>
                       <!--  <br clear="all" /><br /> -->
                        
                        <p class="stdformbutton">
                        	<button class="submit radius2">确认编辑</button>
                             <button class="stdbtn">返回主页</button> 
                        </p>
                        <br clear="all" /><br />
                        
                    </form>

            </div><!--subcontent-->
</body>
</html>